// 封装所有和用户相关的接口函数
import request from '@/utils/http';

// 用户登录
export const login = ({ account, password }) => request({
    url: '/login',
    method: 'POST',
    data: {
        account,
        password
    }
})

// 获取猜你喜欢商品信息
export const getLikeList = (limit = 4) => request({
    url: '/goods/relevant',
    method: 'GET',
    params: {
        limit
    }
})